package de.tabreaderandroid.tabreader.model;

/**
 * @author André Stannek
 * 
 */
public class TabString {

	private String[] bars;

	public TabString(String[] bars) {
		this.bars = bars.clone();
	}

	public String[] getBars() {
		return bars.clone();
	}

	/**
	 * @return the length of the longest contained bar in characters
	 */
	public int getMaxBarLength() {
		int result = 0;
		for (String bar : bars) {
			result = Math.max(result, bar.length());
		}
		return result;
	}
}
